﻿/*
 * Created by SharpDevelop.
 * User: cansik
 * Date: 26.01.2011
 * Time: 10:15
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;

namespace TM.Unofficial.Chat.History
{
	/// <summary>
	/// Simple Text Message Class
	/// </summary>
	public class ChatMessage
	{
		/// <summary>
		/// Message Text
		/// </summary>
		public string Text{get; private set;}
		/// <summary>
		/// Indicator if Message written by Partner
		/// </summary>
		public bool External{get; private set;}
		/// <summary>
		/// TimeStamp of the Message
		/// </summary>
		public DateTime Time{get; private set;}
		
		/// <summary>
		/// Creates a new Chatmessage
		/// </summary>
		/// <param name="text">Message Text</param>
		/// <param name="external">Indicator if Message written by Partner</param>
		/// <param name="time">TimeStamp of the Message</param>
		public ChatMessage(string text, bool external, DateTime time)
		{
			this.Text = text;
			this.External = external;
			this.Time = time;
		}
	}
}
